package com.myjoje.bean.system;


import com.myjoje.base.BaseUuidBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 角色表
 */
@Entity
@Table(name = "sy_role")
public class RoleBean extends BaseUuidBean {

    @Column(columnDefinition = "varchar(40) COMMENT '角色名称'")
    private String name;

    @Column(columnDefinition = "varchar(40) COMMENT '角色编码'")
    private String code;

    @Column(columnDefinition = "varchar(20) COMMENT '优先级，数值越小优先级越高'")
    private String priority;

    @Transient
    private String userCount;

    public String getUserCount() {
        return userCount;
    }

    public void setUserCount(String userCount) {
        this.userCount = userCount;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }
}
